<?php
/**
 * Created by PhpStorm.
 * User: micoy
 * Date: 2018/12/15
 * Time: 0:50
 */

namespace app\index\controller;


use think\Controller;
use think\Db;

class SettingController extends Controller {

    public function GetSetting() {

        $key = input('key');

        $setting = Db::table('setting')->where('map_key', $key)->find();
        if (!$setting) {
            return Success("", "");
        }

        return Success("", $setting['map_value']);

    }

    

}